using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace LockCrypt_WM {
    /// <summary>
    /// Represents a root account list item (Either an account or Group)
    /// </summary>
    public class IAccountListRootItem {
        protected string name;
        protected string icon;
        protected string parent;
        protected DateTime created;
        protected DateTime modified;
        protected bool isChanged;
        protected bool isDeleted;

        /// <summary>
        /// Initializes a new IAccountListRootItem with empty/false values
        /// </summary>
        protected IAccountListRootItem() {
            this.name = string.Empty;
            this.icon = string.Empty;
            this.parent = string.Empty;
            this.created = DateTime.Now;
            this.modified = DateTime.Now;
            this.isChanged = false;
            this.isDeleted = false;
        }
        
        /// <summary>
        /// Initializes a new IAccountListRootItem with the specified name and parent
        /// </summary>
        protected IAccountListRootItem(string name, string parentName) 
            : this() {
            this.name = name;
            this.parent = parentName;
        }
    }
}
